from django.urls import path
from . import views

urlpatterns = [
    path('', views.index, name='index'),
    path('search/', views.search, name='search'),
    path('word/<int:word_id>/', views.word_detail, name='word_detail'),
    path('term/<int:term_id>/', views.term_detail, name='term_detail'),
    path('register/', views.register_view, name='register'),
    path('subject_search/', views.subject_search, name='subject_search'),
    path('login/', views.login_view, name='login'),
    path('logout/', views.logout_view, name='logout'),
    path('profile/', views.profile_view, name='profile'),
    path('collect/word/<int:word_id>/', views.collect_word, name='collect_word'),
    path('collect/term/<int:term_id>/', views.collect_term, name='collect_term'),
    path('visualize/', views.visualize_view, name='visualize'),
    path('nlp_analysis/', views.nlp_analysis_view, name='nlp_analysis'),
    path('nlp/', views.nlp_processing, name='nlp'),
    path('search/', views.search, name='search'),
    path('paper_polish/', views.paper_polish, name='paper_polish'),
    path('visual/', views.visualize_text, name='visual'),
    # 其他视图函数需要在 views.py 中定义
]
